package cn.cqie.attendance.student.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;

/**
 * @Author: xiehaodong
 * @Date: 2021/6/20 - 13:54
 * @Description: cn.cqie.attendance.student.domian
 * @version: 1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value="teacher", description="")
@Alias("teacher")
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Teacher implements Serializable {
    private static final long serialVersionUID = 1L;

    /** Id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 老师名 */
    @ApiModelProperty(value = "老师名")
    private String teacherName;

    /** 工号 */
    @ApiModelProperty(value = "工号")
    private String jobNumber;

    /** 密码 */
    @ApiModelProperty(value = "密码")
    private String password;

    /** 身份证 */
    @ApiModelProperty(value = "身份证")
    private String identity;

    /** 手机号 */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /** 0 女 1 男 */
    @ApiModelProperty(value = "0 女 1 男")
    private Long gender;

    /** 0 无效 1 有效 */
    @ApiModelProperty(value = "0 无效 1 有效")
    private Long status;

    /** 职位 */
    @ApiModelProperty(value = "职位")
    private Long positionId;

    /** 0 普通老师 1 管理员 */
    @ApiModelProperty(value = "0 普通老师 1 管理员")
    private Integer role;

    /** 登录次数 */
    @ApiModelProperty(value = "登录次数")
    private Long loginTimes;

  
}
